<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020/1/19
  Time: 15:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>教师-查询信息</title>
</head>
<body>
<a href="<%=request.getContextPath()%>/insertTeacher.jsp">新增</a>
<table border="1" cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td>工号</td>
        <td>姓名</td>
        <td>性别</td>
        <td>出生日期</td>
        <td>学历</td>
        <td>所管班级号</td>

        <td>操作</td>
    </tr>
    <c:forEach var="item" items="${teacher}">
        <tr>
            <td>${item.id}</td>
            <td>${item.name}</td>
            <td>${item.gender}</td>
            <td><fmt:formatDate value="${item.birthday}" pattern="yyyy-MM-dd "></fmt:formatDate></td>
            <td>${item.education}</td>
            <td>${item.mcid}</td>

            <td>
                <a href="<%=request.getContextPath()%>/teacher/selectById?id=${item.id}">修改</a>
                <a href="<%=request.getContextPath()%>/teacher/delete?id=${item.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
